import { Application } from "../Application";
import { ISocket } from "../util/defines";

/**
 * 客户端连接服务
 */
export abstract class Connector {

    app: Application;

    constructor(app: Application) {
        this.app = app;
    }

    /**
     * 启动服务
     */
    abstract start(port: number, onStart: () => void, onSocket: (socket: ISocket) => void, onError: (err: Error) => void): void;

}